package com.example.demo.api.account;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.GET;
import retrofit2.http.Query;

import java.util.Map;
import java.util.TreeMap;

@RetrofitClient(baseUrl = "${alc.admin.base}")
public interface AzureAdminApi {

    @GET("/dw/operationStatus")
    String operationStatus();

    @GET("/outData/getDoubleWriteOperationStatus")
    String getDoubleWriteOperationStatus();

    @GET("/dw/getStatistics")
    Map<String, Integer> getStatistics(@Query("type") String type);

    @GET("/dw/statisticsByType")
    TreeMap<String, Integer[]> statisticsByType(@Query("type") String type, @Query("d") int d);
}
